|
|
|
|
|
|
|
You can also open your ActiveX documents inside your own custom Web page. If you want to see how your HTML looks with the ActiveX document, simply choose Start Browser with URL and enter the URL of your Web page. (Note that if you select this option you must ensure that your Web page includes the necessary code to display the ActiveX document.) In addition, you can use the Start Program option if you want to test your ActiveX document in another application. |
|
|
|
|
|
|
|
|
If your code doesn't perform like it should, you can use all of Visual Basic's debugging tools to track down and eliminate errors. (Debugging is discussed in detail in Chapter 9, "Visual Basic Programming Fundamentals.") You can set breakpoints in your code, set "Watches" to observe the values of variables, and step through the code line by line to locate an error. Figure 32.7 shows a typical debugging session. |
|
|
|
|
|
|
|
|
See "Debugging Your Programs," p. 173 |
|
|
|
|
CAUTION
|
|
|
|
|
Terminating your program without closing Internet Explorer may cause errors in IE. Therefore, you should close and restart IE each time you run your document. Note that closing IE does not stop the ActiveX document project in Visual Basic. |
|
|
|
|
|
|
|
|
|
|
Figure 32.7
Using debugging tools, you can easily find and correct errors. |
|
|
|
|
|